package com.jxc.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * Commodity entity. @author MyEclipse Persistence Tools
 */

public class Commodity implements java.io.Serializable {

	// Fields

	private Integer id;
	private String sn;
	private String name;
	private String specifications;
	private String company;
	private String factory;
	private String description;
	private Double purchaseprice;
	private Double supplyprice;
	private String img;
	private Set stocks = new HashSet(0);
	private Set orderlists = new HashSet(0);
	private Set storagelists = new HashSet(0);
	private Set librarylists = new HashSet(0);
	private Set inquirylists = new HashSet(0);
	private Set purchaselists = new HashSet(0);

	// Constructors

	/** default constructor */
	public Commodity() {
	}
	public Commodity(int id){
		this.id=id;
	}
	/** full constructor */
	public Commodity(String sn, String name, String specifications,
			String company, String factory, String description,
			Double purchaseprice, Double supplyprice, String img, Set stocks,
			Set orderlists, Set storagelists, Set librarylists,
			Set inquirylists, Set purchaselists) {
		this.sn = sn;
		this.name = name;
		this.specifications = specifications;
		this.company = company;
		this.factory = factory;
		this.description = description;
		this.purchaseprice = purchaseprice;
		this.supplyprice = supplyprice;
		this.img = img;
		this.stocks = stocks;
		this.orderlists = orderlists;
		this.storagelists = storagelists;
		this.librarylists = librarylists;
		this.inquirylists = inquirylists;
		this.purchaselists = purchaselists;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getSn() {
		return this.sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSpecifications() {
		return this.specifications;
	}

	public void setSpecifications(String specifications) {
		this.specifications = specifications;
	}

	public String getCompany() {
		return this.company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getFactory() {
		return this.factory;
	}

	public void setFactory(String factory) {
		this.factory = factory;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Double getPurchaseprice() {
		return this.purchaseprice;
	}

	public void setPurchaseprice(Double purchaseprice) {
		this.purchaseprice = purchaseprice;
	}

	public Double getSupplyprice() {
		return this.supplyprice;
	}

	public void setSupplyprice(Double supplyprice) {
		this.supplyprice = supplyprice;
	}

	public String getImg() {
		return this.img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public Set getStocks() {
		return this.stocks;
	}

	public void setStocks(Set stocks) {
		this.stocks = stocks;
	}

	public Set getOrderlists() {
		return this.orderlists;
	}

	public void setOrderlists(Set orderlists) {
		this.orderlists = orderlists;
	}

	public Set getStoragelists() {
		return this.storagelists;
	}

	public void setStoragelists(Set storagelists) {
		this.storagelists = storagelists;
	}

	public Set getLibrarylists() {
		return this.librarylists;
	}

	public void setLibrarylists(Set librarylists) {
		this.librarylists = librarylists;
	}

	public Set getInquirylists() {
		return this.inquirylists;
	}

	public void setInquirylists(Set inquirylists) {
		this.inquirylists = inquirylists;
	}

	public Set getPurchaselists() {
		return this.purchaselists;
	}

	public void setPurchaselists(Set purchaselists) {
		this.purchaselists = purchaselists;
	}
	

}